package com.dhy;

import com.dhy.dead.DeadConsumer;
import com.dhy.dead.Publisher;
import com.dhy.domain.*;

import java.io.IOException;
import java.net.URISyntaxException;

import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.concurrent.TimeoutException;


/**
 * @author 大忽悠
 * @create 2022/5/18 19:43
 */
public class RabbitmqMain {
    public static void main(String[] args) throws IOException, TimeoutException, URISyntaxException, NoSuchAlgorithmException, KeyManagementException, InterruptedException {
        Thread deadConsumer = new Thread(new DeadConsumer(),"dead");
        Thread publisher = new Thread(new Publisher(),"pub");
        publisher.start();
        Thread.sleep(2000);
        deadConsumer.start();
    }

}
